#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() 
{
    int n = 0;
    int n_count = 0, p_count = 0;
    int sum = 0;
    float avg = 0;
    int num = 0;
    scanf("%d", &n);
    int i = 0;
    for (i = 0; i < n; i++)
    {
        scanf("%d", &num);
        if (num > 0)
        {
            p_count++;
            sum += num;
        }
        else if (num < 0)
        {
            n_count++;
        }
    }
    if (p_count)
    {
        avg = sum * 1.0 / p_count;
    }
    printf("%d %.1f", n_count, avg);
    return 0;
}